<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/admin/header.jsp"%>
<% request.setAttribute("ModifyPasswordFeaturesUrl", com.sz.controller.frame.UserController.MODIFY_PASSWORD_URL); %>
<base href="${ctx }/admin/" />

</head>
<body>
    <nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 
		<span class="c-gray en">&gt;</span>修改密码
		<a class="btn btn-success radius r"
			style="line-height: 1.6em; margin-top: 3px"
			href="javascript:location.replace(location.href);" title="刷新">
			 <i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
   <div class="page-container">
     <form id="modifypasswordform" class="form form-horizontal "  action="${ctx }${ModifyPasswordFeaturesUrl}" method="post" target="_top">
        
        <div class="row cl">
             <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>请输入原始密码：</label>
                    <div class="formControls col-xs-8">
                      <input id="oldpassword" name="oldpassword" type="password" class="input-text" placeholder="密码" >
                    </div>
                  </div>
         <div class="row cl">
                      <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>请输入新密码：</label>
                      <div class="formControls col-xs-8">
                      <input id="newpassword" name="newpassword" type="password" class="input-text" placeholder="新密码" >
                    </div>
                  </div>   
             <div class="row cl">
                      <label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>确认密码：</label>
                      <div class="formControls col-xs-8">
                      <input id="confirm_password" name="confirm_password" type="password" class="input-text" placeholder="确认密码" >
                    </div>
                  </div>            
             <div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
					<button class="btn btn-primary radius" type="submit">
						<i class="Hui-iconfont">&#xe632;</i> 修改密码
					</button>
					<button onClick="setNo();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
				</div>  
				</div> 
                
     </form>
   </div>
   <%@ include file="/admin/footer.jsp"%>
   <script type="text/javascript">
      $(document).ready(function(){

          $("#modifypasswordform").validate({
              rules : {
            	  newpassword : {
                      required : true,
                      minlength : 3
                  },
                  confirm_password : {
                      required: true,
                      minlength: 3,
                      equalTo: "#newpassword"
                  }
              },
              onkeyup : false,
              focusCleanup : true,
              success : "valid",
              submitHandler:function(form){
                  form.submit();
              }
          });
      });
   </script>
</body>
</html>